﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LimpaGaragem.BLL.Product.Auto
{
    public class Version
    {
        /// <summary>
        /// Return list of version
        /// </summary>
        /// <returns></returns>
        public List<LimpaGaragem.Model.Product.Auto.Version> GetListOfVersion()
        {
            try
            {
                return new LimpaGaragem.DAO.Product.Auto.Version().GetListOfVersion();
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }

        /// <summary>
        /// Return data of version
        /// </summary>
        /// <returns></returns>
        public LimpaGaragem.Model.Product.Auto.Version GetVersion(int IDVersion)
        {
            try
            {
                return new LimpaGaragem.DAO.Product.Auto.Version().GetVersion(IDVersion);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
    }
}
